package com.ruoyi.system.task;

import com.ruoyi.system.util.MsgUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TerminationJob implements Job {


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //发送邮件提醒预约时间已到
        MsgUtil msgUtil = (MsgUtil) MsgUtil.getBean("msgUtil");
        msgUtil.sendTextEmail("1354742382@qq.com","预约提醒","看房预约时间已到");
    }
}
